import http from "@/utils/http.js"

const url = {
    // 查询巡查记录
    patrolPagePatrol: "/patrol/pagePatrol",
    // 删除巡查记录
    patrolDeletePatrol: "/patrol/deletePatrol/",
    // 导出巡查记录
    patrolExportPatrol: "/patrol/exportPatrol/",
}
export default {
    url: url,
    // 查询巡查记录
    patrolPagePatrol(params) {
        return http.post(url.patrolPagePatrol, params)
    },
    // 删除巡查记录
    patrolDeletePatrol(params) {
        return http.post(url.patrolDeletePatrol + params.id)
    },
    // 导出巡查记录
    patrolExportPatrol(params) {
        return http.export(url.patrolExportPatrol + params.id, params, 'post')
    },
}